package com.gomore.opple.service;

import com.gomore.opple.service.impl.ServerUploadProcessor;

/**
 * Created by asus on 2017/5/19.
 */
public class UploadProcessorFactory {

    private static UploadProcessorFactory instance;

    private UploadProcessorFactory() {

    }

    public synchronized static UploadProcessorFactory getInstance() {
        if (instance == null) {
            instance = new UploadProcessorFactory();
        }
        return instance;
    }

    /**
     * 取得文件上传处理器。
     *
     * @return
     */
    public UploadProcessor get() {
        return new ServerUploadProcessor();
    }

}
